<?php
namespace Home\Controller;
use Think\Controller;

class UpdateController extends CommonController
{
    public function update()
    {
        $serverversion = '1';
        $link = '';
        $banben = '1.0';
        $desc = '有新版本上线啦，赶快更新吧！';
        $data['serverversion'] = $serverversion;
        $data['link'] = $link;
        $data['banben'] = $banben;
        $data['desc'] = $desc;
        $data['forceUpdate'] = '0';
        //print_r($data);die;
        $data1['ret'] = '1001';
        $data1['code'] = 'success';
        $data1['data'] = $data;
        $data1 = $this->jiami($data);
        $this->return = ['data'=>$data1];
        exit();
    }
}